#include <REGX52.H>
#include "LCD1602.h"
#include "MatrixKey.h"

void main()
{
	unsigned char KeyNum=0;	
	LCD_Init();
	while(1)
	{
		KeyNum=MatrixKey();
		if(KeyNum!=0)
		{
		LCD_ShowNum(1,1,KeyNum,2);
		}
	}
}